#ifndef JKJ_UI_H
#define JKJ_UI_H
#include <QDebug>
#include <QStackedWidget>
#include <QWidget>
#include <QtWidgets>
#include "UserPersonal_ui.h"
#include "UserPersonal_ui_logic.h"
#include "ip_port.h"
#include "menu_ui.h"
#include "qtab_ui.h"
#include "shoppingcart_ui.h"
#include "shoppingcart_ui_logic.h"
#include"globals.h"
class JkjUi : public QWidget
{
    Q_OBJECT
public:
    explicit JkjUi(QWidget *parent = nullptr);
    QStackedWidget *getStackedWidget() const { return qStackedWidget; }
    QWidget *getSidebarWidget() const { return sidebarWidget; }
    ~JkjUi();

private:
    QWidget *sidebarWidget;
    QWidget *content;
    QStackedWidget *qStackedWidget;

    static QSplitter *createVerticalSplitter(QWidget *parent,
                                             QWidget *content1,
                                             QWidget *content2,
                                             Qt::Orientation orientation,
                                             int size1,
                                             int size2);
    void init();
};

#endif // JKJ_UI_H
